Conversation
trisyoungs
left a comment
There was a problem hiding this comment.
This is definitely heading down the right lines, but one crucial thing is missing - the rotation of the label isn't accounted for in the bounding cuboids, which means that the layout is generated incorrectly. To illustrate this, run the basic example, set the Y-axis title to "Vertical", and put in a long title. It's clear that the graph area is reacting to an increase in only the horizontal (un-rotated) size of the label.
Oops! Yes you are right - I hadn't thought about that. |
|
Regarding this, at which point do you think the rotation should be performed? In reference to the |
|
I think I'd be tempted to add another argument to the second |
…achieve alignment about Z.
Co-authored-by: Tristan Youngs <[email protected]>
…l calculated incorrectly).
f192f1e to
60f09cc
Compare
Relatively small PR that enables a
TextEntityto be rotated. This is aimed in particular at Axis Titles.TextAlignmentenum for defining rotation of text (currently horizontal / vertical).TextEntityclass.AxisEntityclass.Current issues:
Closes #13.